package com.cb.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cb.admin.domain.RoleMenuRef;
import com.cb.admin.mapper.IRoleMenuRefMapper;
import com.cb.admin.service.IRoleMenuRefService;

@Service
public class RoleMenuRefServiceImpl implements IRoleMenuRefService {
	
	@Autowired
	private IRoleMenuRefMapper roleMenuRefMapper;

	@Override
	public void insert(RoleMenuRef roleMenuRef) {
		// TODO Auto-generated method stub
		roleMenuRefMapper.insert(roleMenuRef);
	}

	@Override
	public List<String> getMenuIdsByRoleId(int roleId) {
		// TODO Auto-generated method stub
		return roleMenuRefMapper.getMenuIdsByRoleId(roleId);
	}

	@Override
	public void deleteByRoleId(int roleId) {
		// TODO Auto-generated method stub
		roleMenuRefMapper.deleteByRoleId(roleId);
	}
}